package com.web.farme.meta;

import com.web.farme.annotation.Column;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;


@Data
public class ColumnMetadata {
    @Column(columnName = "COLUMN_NAME", jdbcType = JdbcType.VARCHAR)
    private String columnName;

    @Column(columnName = "DATA_TYPE", jdbcType = JdbcType.VARCHAR)
    private String columnType;

    @Column(columnName = "CHARACTER_MAXIMUM_LENGTH", jdbcType = JdbcType.VARCHAR)
    private Integer length;

    @Column(columnName = "IS_NULLABLE", jdbcType = JdbcType.VARCHAR)
    private String isNull;

    @Column(columnName = "COLUMN_COMMENT", jdbcType = JdbcType.VARCHAR)
    private String comment;

    @Column(columnName = "COLUMN_DEFAULT", jdbcType = JdbcType.VARCHAR)
    private String columnDefault;
}
